import { Component, Input, OnInit } from '@angular/core';

interface FuncData{
  id: string,
  code: string,
  name: string,
  icon: string,
  router?: string
}

@Component({
  selector: 'app-common-func',
  templateUrl: './common-func.component.html',
  styleUrls: ['./common-func.component.scss']
})
export class CommonFuncComponent implements OnInit {

  constructor() { }
  @Input() width = '748px'
  @Input() padding = false

  @Input() commonFuncData: FuncData[] = [
    { id: '1', code: '1', name: '水管报漏', icon: '/assets/images/home/content/水管报漏.svg' },
    { id: '1', code: '1', name: '水管报漏', icon: '/assets/images/home/content/水管报漏.svg' },
    { id: '1', code: '1', name: '水管报漏', icon: '/assets/images/home/content/水管报漏.svg' },
    { id: '1', code: '1', name: '水管报漏', icon: '/assets/images/home/content/水管报漏.svg' },
    { id: '1', code: '1', name: '水管报漏', icon: '/assets/images/home/content/水管报漏.svg' },
    { id: '1', code: '1', name: '水管报漏', icon: '/assets/images/home/content/水管报漏.svg' },
    { id: '1', code: '1', name: '水管报漏', icon: '/assets/images/home/content/水管报漏.svg' },
    { id: '1', code: '1', name: '水管报漏', icon: '/assets/images/home/content/水管报漏.svg' }
  ]
  @Input() title = ''
  @Input() titleIcon = ''
  @Input() allBorder = false
  @Input() custStyle = {}

  ngOnInit(): void {
  }

}
